/**
 * Created by xnr on 20/2/24.
 */

import * as account from "./account";
import * as banner from "./banner";
import * as train from "./train";
import * as course from "./course";
const apiObj = {
  account,
  banner,
  train,
  course
};

const install = function(Vue) {
  if (install.installed) return;
  install.installed = true;
  Object.defineProperties(Vue.prototype, {
    $api: {
      get() {
        return apiObj;
      }
    }
  });
};
export default {
  install
};
